onEvent('recipes', (event) => {
    for (let i = 1; i < 20; i++) {
        let j = 0.01 + 0.8 * (i / 19);

        let k = 80 + (50 * i);

        event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 500)
            .requireItem(Item.of('botania:laputa_shard', `{level:${i}}`)).chance(j)
            .produceFluid(Fluid.of('manaliquidizer:mana_fluid', k))
    }

    event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 1000)
        .requireItem('kubejs:paper_5').chance(0)
        .produceFluid(Fluid.of('manaliquidizer:mana_fluid', 100))

    //100000
    //20000
    let f_list = [
        {
            input: ["botania:hydroangeas", 'astralsorcery:liquid_starlight_bucket'],
            mana: 100
        },
        {
            input: ["botania:thermalily", "evilcraft:bucket_blood"],
            mana: 200
        },
        {
            input: ["botania:rosa_arcana", "forbidden_arcanus:xpetrified_orb"],
            mana: 300
        },
    ]

    let list = [
        {
            input: ["botania:endoflame", "ironfurnaces:rainbow_coal"],
            mana: 24000
        },
        {
            input: ["botania:munchdew", "minecraft:oak_leaves"],
            mana: 36790
        },
        {
            input: ["botania:entropinnyum", "botania:mana_bomb"],
            mana: 32900
        },
        {
            input: ["botania:kekimurus", "create:blaze_cake"],
            mana: 1800 * 7
        },
        {
            input: ["botania:narslimmus", "evilcraft:inverted_potentia_empowered"],
            mana: 12800
        },
        {
            input: ["mythicbotany:wither_aconite", "forbidden_arcanus:dark_nether_star"],
            mana: 65500
        },
    ]

    list.forEach(i => {
        event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 1000)
            .requireItem(i.input[0]).chance(0)
            .requireItem(i.input[1])
            .produceFluid(Fluid.of('manaliquidizer:mana_fluid', i.mana))
    })

    event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 10)
        .requireItem("botania:dandelifeon").chance(0)
        .requireItem("botania:cell_block")
        .produceFluid(Fluid.of('manaliquidizer:mana_fluid', 1200))
    event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 30)
        .requireItem("botania:rosa_arcana").chance(0)
        .requireItem("forbidden_arcanus:xpetrified_orb")
        .produceFluid(Fluid.of('manaliquidizer:mana_fluid', 1200))

    for (let i = 1; i < 5; i++) {
        event.recipes.custommachinery.custom_machine("custommachinery:mana_liquifactor", 1000)
            .requireItem("botania:gourmaryllis").chance(0)
            .requireItem(`kubejs:party_${i}_ingot`)
            .produceFluid(Fluid.of('manaliquidizer:mana_fluid', i * 5000))
    }

});